﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for clsLayDeIn
/// </summary>
public class clsLayDeIn
{
    DataClassesDataContext obj_laydein = new DataClassesDataContext();
    private string MaDC;

    public string MaDC1
    {
        get { return MaDC; }
        set { MaDC = value; }
    }
    private int STT;

    public int STT1
    {
        get { return STT; }
        set { STT = value; }
    }
    private string Noidung;

    public string Noidung1
    {
        get { return Noidung; }
        set { Noidung = value; }
    }
    private string PA1;

    public string PA11
    {
        get { return PA1; }
        set { PA1 = value; }
    }
    private string PA2;

    public string PA21
    {
        get { return PA2; }
        set { PA2 = value; }
    }
    private string PA3;

    public string PA31
    {
        get { return PA3; }
        set { PA3 = value; }
    }
    private string PA4;

    public string PA41
    {
        get { return PA4; }
        set { PA4 = value; }
    }
    
	public clsLayDeIn()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public List<clsLayDeIn> LayDeIn(string madc)
    {
        var dsdein = (from p in obj_laydein.tbl_CHITIETDCs
                      where p.MaDC == madc
                      select new clsLayDeIn
                      {
                          STT = p.STT,
                          Noidung = p.Noidung,
                          PA1 = p.PA1,
                          PA2 = p.PA2,
                          PA3 = p.PA3,
                          PA4 = p.PA4

                      }).ToList();
        return dsdein;
    }
}
